/**
 * 项目名：化工企业安全生产信息化管理平台
 * 日期：    2020-07-26 17:45:28
 * Copyright (c) 2015- -版权所有
 */
package com.joysuch.wwyt.bp.service;

import com.joysuch.wwyt.bp.bean.BpDeviceFacilityMaintainRecordDetailBean;
import com.joysuch.wwyt.bp.bean.BpDeviceFacilityMaintainRecordEditBean;
import com.joysuch.wwyt.bp.bean.BpDeviceFacilityMaintainRecordListBean;
import com.joysuch.wwyt.bp.entity.BpDeviceFacilityMaintainRecord;
import com.joysuch.wwyt.core.exception.ApiBusinessException;
import com.joysuch.wwyt.core.exception.BusinessRestrictionsException;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import static com.joysuch.wwyt.bp.bean.BpDeviceFacilityMaintainRecordListBean.SearchBpDeviceFacilityMaintainRecord;

public interface BpDeviceFacilityMaintainRecordService {

    public BpDeviceFacilityMaintainRecord add(BpDeviceFacilityMaintainRecordEditBean entity) throws ApiBusinessException;

    void update(BpDeviceFacilityMaintainRecordEditBean entity);

    Page<BpDeviceFacilityMaintainRecordListBean> findByPage(Pageable page,SearchBpDeviceFacilityMaintainRecord condition);

    void delete(Long id) throws BusinessRestrictionsException;

    BpDeviceFacilityMaintainRecordDetailBean getById(Long id);

    BpDeviceFacilityMaintainRecord findById(Long id);

    boolean hasMaintainRecord(Long deviceFacilityId);

    void deleteById(Long recordId);
}
